********************************************************************************
*THE FILE MAKES MONTH LABEL IN THE (YEAR 2015/2019) 12-MONTH WINDOW FOR 
*THE LISTED TIME-INTERACTED VARIABLES (VARLIST, USE QUOTES)
********************************************************************************
type RO_labels.do
args year varlist

noisily disp "Use quotes to embrace variable list"

if `year'==2019 {
	local list `varlist'
	foreach var of loc list {
	noisily dis "Making month labels"
	capture label variable dT1`var' 2019m3
	capture label variable dT2`var' 2019m4
	capture label variable dT3`var' 2019m5
	capture label variable dT4`var' 2019m6
	capture label variable dT5`var' 2019m7
	capture label variable dT7`var' 2019m9
	capture label variable dT8`var' 2019m10
	capture label variable dT9`var' 2019m11
	capture label variable dT10`var' 2019m12
	capture label variable dT11`var' 2020m1
	capture label variable dT12`var' 2020m2
}
}

if `year'==2015 {
	local list `varlist'
	foreach var of loc list {
	noisily dis "Making month labels"
	capture label variable dT1`var' 2014m7
	capture label variable dT2`var' 2014m8
	capture label variable dT3`var' 2014m9
	capture label variable dT4`var' 2014m10
	capture label variable dT5`var' 2014m11
	capture label variable dT7`var' 2015m1
	capture label variable dT8`var' 2015m2
	capture label variable dT9`var' 2015m3
	capture label variable dT10`var' 2015m4
	capture label variable dT11`var' 2015m5
	capture label variable dT12`var' 2015m6
}
}

